<div class="row">
			<div class="col col-md-12">
				<div id="index-carousel" class="carousel slide" data-ride="carousel">
					<!-- Indicators -->
					<ol class="carousel-indicators">
						<li data-target="#index-carousel" data-slide-to="0" class="active"></li>
						<li data-target="#index-carousel" data-slide-to="1"></li>
						<li data-target="#index-carousel" data-slide-to="2"></li>
					</ol>

					<!-- Wrapper for slides -->
					<div class="carousel-inner" role="listbox">
						{func model=app action=get_ad item=ad_list code="indexad"}
		{foreach from=$ad_list item=ad name=indexad}
						<div class="item {if $smarty.foreach.indexad.index==0} active{/if}">
							<img src="{$ad.pic_path}" alt="{$ad.title}">
						</div>
						{/foreach}
					</div>

					<!-- Controls -->
					<a class="left carousel-control" href="#index-carousel" role="button" data-slide="prev">
						<span class="glyphicon glyphicon-chevron-left"></span>
						<span class="sr-only">Previous</span>
					</a>
					<a class="right carousel-control" href="#index-carousel" role="button" data-slide="next">
						<span class="glyphicon glyphicon-chevron-right"></span>
						<span class="sr-only">Next</span>
					</a>
				</div>
			</div>
		</div>